/* h5发布设置
 * H5PublicSet.js
 */

//import { combineReducers } from 'redux';

function h5PublicSetInfo(state={},action){
	switch (action.type){
		case 'H5_PUBLIC_INFO_INIT':
			return action.data;
		case 'H5_PUBLIC_INFO_CHANGE':
			return {...state,[action.name]:action.value};
		case 'H5_OFFLINE':
			return {...state,is_public:0};
		case 'H5_SET_MODAL_SUCCSS':
			return {...state,is_modal:1};
		case 'H5_DELETE_MODAL_SUCCSS':
			return {...state,is_modal:0};
		default:
			return state;
	}
}

export default h5PublicSetInfo;
